import Vue from 'vue'
import Vuex from 'vuex'
import user from './user'
import persisted from 'vuex-persistedstate'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
  },
  getters: {
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    user
  },
  plugins:[
    // 数据持久化
    persisted({
      storage:localStorage,
    })
  ]
})
